package com.ruoyi.web.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.utils.serializer.BigDecimalToPlainStringSerializer;
import lombok.Data;

import java.math.BigDecimal;

/**
 * QGPay业务对象 qg_pay_business
 *
 * @date 2023-03-15
 */
@Data
public class QgPayBusiness extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 法币编码
     */
    @Excel(name = "法币编码")
    private String legalTenderCode;

    /**
     * 类型（0代收、1代付）
     */
    @Excel(name = "类型", readConverterExp = "0=代收、1代付")
    private String type;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 编码
     */
    @Excel(name = "编码")
    private String code;

    /**
     * 最小金额
     */
    @Excel(name = "最小金额")
    @JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
    private BigDecimal minAmount;

    /**
     * 最大金额
     */
    @Excel(name = "最大金额")
    @JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
    private BigDecimal maxAmount;

    /**
     * 状态（0停用、1启用）
     */
    @Excel(name = "状态", readConverterExp = "0=停用、1启用")
    private String status;

    /**
     * 是否删除（0否、null是）
     */
    @Excel(name = "是否删除", readConverterExp = "0=否、null是")
    private String isDeleted;
}
